package com.ruoyi.yuce.service.impl;

import java.util.List;

import com.ruoyi.yuce.domain.FaultRecord;
import com.ruoyi.yuce.domain.KwhData;
import com.ruoyi.yuce.domain.YcData;
import com.ruoyi.yuce.domain.pojo.CoChangZhan;
import com.ruoyi.yuce.mapper.KwhDataMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.yuce.mapper.ChangzhanMapper;
import com.ruoyi.yuce.domain.Changzhan;
import com.ruoyi.yuce.service.IChangzhanService;

/**
 * 场站Service业务层处理
 *
 * @author ruoyi
 * @date 2023-01-17
 */
@Service
public class ChangzhanServiceImpl implements IChangzhanService
{
    @Autowired
    private ChangzhanMapper changzhanMapper;

    /**
     * 查询场站
     *
     * @param id 场站主键
     * @return 场站
     */
    @Override
    public Changzhan selectChangzhanById(Integer id){
        return changzhanMapper.selectChangzhanById(id);
    }

    @Override
    public List<CoChangZhan> getChangZhanName() {
        return changzhanMapper.getChangZhanName();
    }

    /**
     * 查询场站列表
     *
     * @param changzhan 场站
     * @return 场站
     */
    @Override
    public List<Changzhan> selectChangzhanList(Changzhan changzhan)
    {
        return changzhanMapper.selectChangzhanList(changzhan);
    }

    /**
     * 新增场站
     *
     * @param changzhan 场站
     * @return 结果
     */
    @Override
    public int insertChangzhan(Changzhan changzhan)
    {
        return changzhanMapper.insertChangzhan(changzhan);
    }

    /**
     * 修改场站
     *
     * @param changzhan 场站
     * @return 结果
     */
    @Override
    public int updateChangzhan(Changzhan changzhan)
    {
        return changzhanMapper.updateChangzhan(changzhan);
    }

    /**
     * 批量删除场站
     *
     * @param ids 需要删除的场站主键
     * @return 结果
     */
    @Override
    public int deleteChangzhanByIds(Integer[] ids)
    {
        return changzhanMapper.deleteChangzhanByIds(ids);
    }

    /**
     * 删除场站信息
     *
     * @param id 场站主键
     * @return 结果
     */
    @Override
    public int deleteChangzhanById(Integer id)
    {
        return changzhanMapper.deleteChangzhanById(id);
    }

    @Override
    public int getChangzhanNum()
    {
        return changzhanMapper.getChangzhanNum();
    }

}
